// 构建车险 单证状态修改参数

export default (ctx, next) =>{
    const formStore = ctx.store.state['carFormStore'];
    const currentSingleInfo = formStore['indiaSingle'][formStore['currentSingleType']];
    
    ctx.params = Object.assign({
        orderId: formStore['indiaOrderInfo']['orderId'],     
        singleId: currentSingleInfo.serialNumber,    
        singleType: currentSingleInfo.type, 
        singleState: currentSingleInfo.status, 
    }, ctx.params);

    next()
}